; and (V) the Secretary, in the Secretary's sole and unreviewable discretion, determines that the alien is not a threat to national security or public safety. (iv) Detention and expedited removal An alien described in clause (ii) who remains in the United States more than 30 days after the date on which the period of stay authorized by the Secretary ends, without good cause, shall be detained and the Secretary shall expeditiously remove the alien from the United States not later than 90 days after the date on which the alien is detained. (v) Limitation on judicial review Notwithstanding any other provision of law (statutory or nonstatutory), including section 2241 of title 28, United States Code, any other habeas corpus provision, or sections 1361 and 1651 of such title, no court shall have jurisdiction to review any cause or claim, arising from, or relating to, the detention and expedited removal of an alien pursuant to clause (iv). . (b) Visa waiver program waiver of rights Section 217(b) of the Immigration and Nationality Act ( 8 U.S.C. 1187(b) ) is amended to read as follows: (b) Waiver of rights An alien may not be provided a waiver under the program unless the alien has— (1) signed, under penalty of perjury, an acknowledgment confirming that the alien was notified and understands that he or she will be— (A) ineligible for any form of relief or immigration benefit under the Act or any other immigration laws, including sections 240A(b)(1), 240B(b), 245, 248, and 249 (other than a request for asylum), relief as a victim of trafficking under section 101(a)(15)(T), relief as a victim of criminal activity under 101(A)(15)(U), relief under the Violence Against Women Act of 1994 ( 42 U.S.C. 13701 et seq.) as a spouse or child who has been battered or subjected to extreme cruelty, relief as a battered spouse or child under section 240A(b)(2), withholding of removal under section 241(b)(3), or protection from removal based on a claim under the Convention Against Torture and Other Cruel, Inhuman or Degrading Treatment