Department of Homeland Security are detained shall be owned and operated by the Department of Homeland Security. (2) Non-secure detention programs Beginning on the date of the enactment of this Act, the Secretary of Homeland Security may not enter into or extend any contract with any public or private for-profit entity which owns or operates a program or facility that provides for non-residential detention-related activities for aliens who are subject to monitoring by the Department of Homeland Security, and shall terminate any such contract not later than the date that is 3 years after the date of the enactment of this Act. Beginning on the date that is 3 years after the date of the enactment of this Act, any such program or facility shall be owned and operated by a nonprofit organization or by the Department of Homeland Security. (3) Publication of plan Not later than 60 days after the date of the enactment of this Act, the Secretary shall develop, and make publicly available, a plan and timeline for the implementation of this subsection. 6. Appearance of detained aliens for other legal matters The Secretary of Homeland Security shall make rules to ensure that any alien who is detained in the custody of the Department of Homeland Security, who is required to appear in Federal or State court (including family court) for another matter, is transported by an officer or employee of the Department of Homeland Security to such court proceeding. 7. Procedures for detaining aliens (a) Probable cause and custody determination hearings Section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 ) is amended— (1) by amending subsection (a) to read as follows: (a) Arrest, detention, and release On a warrant issued by an immigration judge, or pursuant to section 287(a)(2), the Secretary of Homeland Security may arrest an alien, and in accordance with this section, detain the alien or release the alien on bond, subject to conditions, or recognizance, pending a decision on whether the alien is to be removed from the