TUCSON, Ariz. (AP) — A federal judge on Wednesday said he would inspect a Tucson Border Patrol facility that migrants say is plagued by extreme overcrowding, freezing temperatures and unsafe conditions.

U.S. District Court Judge David C. Bury said he was going to inspect the main Tucson Sector facility after plaintiffs in a lawsuit challenging the conditions rested their case, leaving Wednesday afternoon open.

For years, migrants have complained about conditions at the holding facilities. The Tucson Sector comprises most of Arizona and includes eight stations where immigrants are held before they’re deported or turned over to Immigration and Customs Enforcement.

The lawsuit was filed in 2015. The next year, the judge issued a preliminary injunction requiring the Tucson Sector to provide clean mats and thin blankets to migrants held for longer than 12 hours and to allow them to clean themselves.

The agency also must turn over surveillance video and statistics such as time in custody.

The trial began Monday and affects only that sector, although similarly poor conditions have been reported at other Border Patrol facilities along the Southwest border.

The Border Patrol says the facilities are designed for short-term stays for adults.