StateMachine now emits the states it has entered