; and (5) by striking Attorney General each place such term appears and inserting Secretary of Homeland Security . (b) Probable cause hearing Section 287(a)(2) of the Immigration and Nationality Act ( 8 U.S.C. 1357(a)(2) ) is amended by striking but the alien arrested shall be taken without unnecessary delay for examination before an officer of the Service having authority to examine aliens as to their right to enter or remain in the United States and inserting but the alien arrested shall be provided with a hearing before an immigration judge not later than 48 hours after being taken into custody to determine whether there is probable cause to believe that the alien does not have the right to enter or remain in the United States, which burden to establish probable cause shall be on the Government . (c) Mandatory detention repealed The Immigration and Nationality Act ( 8 U.S.C. 1101 et seq.) is amended— (1) by striking section 235(b)(1)(B)(iii)(IV); (2) by striking section 236(c); (3) by striking section 236A; (4) in section 238(a)(2), by striking pursuant to section 236(c) ; and (5) in section 506(a)(2)— (A) by amending the heading to read as follows: Release hearing for aliens detained ; and (B) in subclause (A)— (i) in the matter preceding clause (i), by striking lawfully admitted for permanent residence ; and (ii) by striking clause (i). (d) Aliens ordered removed Section 241(a) of the Immigration and Nationality Act ( 8 U.S.C. 1231(a) ) is amended— (1) in paragraph (1), by striking 90 days each place it appears and inserting 60 days