; and (II) if the alien is not convicted of the offense for which the alien was arrested, the Secretary shall continue to detain the alien until removal proceedings are completed. . 302. Deterring visa overstays (a) Admission of nonimmigrants Section 214 of the Immigration and Nationality Act ( 8 U.S.C. 1184 ) is amended by striking the section heading and all that follows through subsection (a)(1) and inserting the following: 214. Admission of nonimmigrants (a) In general (1) Terms and conditions of admission (A) Regulations Subject to subparagraphs (B) and (C), the admission to the United States of any alien as a nonimmigrant may be for such time and under such conditions as the Secretary of Homeland Security may by regulations prescribe, including when the Secretary deems necessary the giving of a bond with sufficient surety in such sum and containing such conditions as the Secretary shall prescribe, to insure that at the expiration of such time or upon failure to maintain the status under which the alien was admitted, or to maintain any status subsequently acquired under section 248, such alien will depart from the United States. (B) Guam or CNMI visa waiver nonimmigrants No alien admitted to Guam or the Commonwealth of the Northern Mariana Islands without a visa pursuant to section 212(l) may be authorized to enter or stay in the United States other than in Guam or the Commonwealth of the Northern Mariana Islands or to remain in Guam or the Commonwealth of the Northern Mariana Islands for a period exceeding 45 days from the date of admission to Guam or the Commonwealth of the Northern Mariana Islands. (C) Visa waiver program nonimmigrants No alien admitted to the United States without a visa pursuant to section 217 may be authorized to remain in the United States as a nonimmigrant visitor for a period exceeding 90 days from the date of admission. (D) Bar to immigration benefits and to contesting removal (i) In general Subject to clause (ii), except for an alien admitted as a nonimmigrant under subparagraph