StateMachinery