Flights: Added some error checking.