Made the ExtendedStateMachine listenable