Moved StateMachineHandle definition below StateMachine.