misplaced brace...
Care free mode should be inside the if (in_flight)