use Timer in StateMachine