State machine is updated