Following the State Machine logic flow