Pass StateMachine to guard