Added logic to add flight.