Skip the loop by using the auto_pilot variable inside the condition.

Make sure to pick auto_pilot.