FILE PHOTO: U.S. Homeland Security Secretary Kirstjen Nielsen speaks with Mexico's Interior Minister Alfonso Navarrete Prida before delivering a joint message in Mexico City, Mexico March 26, 2018. REUTERS/Edgard Garrido

MEXICO CITY (Reuters) - Mexico’s interior minister said on Monday that he spoke to the U.S. homeland security secretary Kirstjen Nielsen, agreeing to work together to study how to best address the flow of migrants.

“We agreed to analyze the best ways to attend to the flows of migrants in accordance with the laws of each country,” Interior Minister Alfonso Navarrete wrote in a post on Twitter.

U.S. President Donald Trump lashed out against Mexico on Sunday, writing on Twitter that the Latin American country was doing little to stop the flow of migrants into the United States.