President Donald Trump signed an executive order Wednesday to preserve all lawful orders that prevent U.S. Customs and Border Protection officers from detaining people for questioning.

The order, which Trump signed at the White House, requires the president to issue a memo directing agencies to review their policies and regulations to ensure they comply with federal court orders, which are aimed at stopping immigration enforcement at the borders and other areas of the U.K. The president’s order also orders the Secretary of Homeland Security to issue new guidance to DHS on the issuance of new visas for individuals who have been arrested and detained by U.L.P. agents.

The new guidance will address how DHS will treat individuals detained by the agency.

The memos order DHS to establish a new Office of the Inspector General to examine the agency’s policies, practices, and procedures related to detaining individuals, as well as the use of force, in the custody of U.U.L., the ACLU said in a statement.

The department’s actions will also ensure that immigration enforcement policies and procedures are not being abused or violated, the statement added. ___