Added getState() everywhere in lame way.