Added new changes to state and task