Fixed targetState and added percept