Removed setAllowFlight