While the U.S. is battling the current crisis, which began in October, of undocumented immigrant women and children arriving in tens of thousands from Central America, Mexico has vowed to do its part in ensuring the individuals do not risk their lives atop a train known as "The Beast" in their efforts to reach the U.S.

Mexican Secretary of the Interior, Miguel Angel Osorio Chong, told Univision Friday that the train is not a passenger train, and while the individuals are passing through the country, their safety is Mexico's responsibility.

His announcement came two days after heavy rain reportedly derailed a cargo train with 1,300 women and children aboard, according to Reuters. No one was injured.

But the incident, which received media attention in the U.S., spurred action in Mexico to regulate illegal travel.

The Beast and the Train of Death are nicknames for a network of trains that migrants using when traveling to the U.S.

Since October, 57,000 unaccompanied children originating mostly from El Salvador, Guatemala and Honduras have crossed the border, and at least 150,000 more are expected by next year, according to the Washington Times.

The Mexican government announced Friday that they are working on plans to deal with the situation and intend on returning migrants who do not have permission to be in Mexico back to their country of origin, according to Univision.

Chong told Univision that these individuals are risking their lives, and if found traveling without proper documentation to get into Mexico and the U.S. will not be allowed into the country.

In addition, anyone passing the four southern border states of Chiapas, Quintana Roo, Campeche and Tabasco -- where The Beast trains travel -- traveling without a visa to enter the country will be turned away.

The 1,300 immigrants involved in the derailment are stranded in Mexico. Officials say most of them are children.