Control with BackToPath and state machine