Airlines must submit a flight departure message once the aircraft leaves the last foreign airport before the arrival in the US. This gives CBP personnel an alert to complete the security assessment of the information submitted by the airline and house level cargo details and to prepare for the arrival of the aircraft.