Base for StateMachine