Switch from clearState() to initState()