Central American countries have reached a deal to allow some of the thousands of Cuban migrants stranded in Costa Rica for more than a month to continue onwards to the United States.
The agreement, which was reached in Guatemala City on Monday, will come into effect in January.
Under the deal, an undisclosed number of Cuban migrants will be flown to El Salvador and then ferried to Mexico by bus.
"The solution emerging is an absolute exception and only for those people who entered national territory legally," said Manuel Gonzalez, Costa Rica's foreign minister.
The pilot programme will be subject to revision as diplomats are expected to work out logistical details in upcoming meetings.
Officials from Panama, El Salvador, Guatemala, Honduras, Belize, Mexico, Costa Rica and the International Organization for Migration took part in the talks.