Fixed pathing and state machine task.