apply to any alien returned to custody pursuant to this subparagraph, as if the removal period terminated on the day of the redetention. (13) Certain aliens who effected entry If an alien has effected an entry but has neither been lawfully admitted nor physically present in the United States continuously for the 2-year period immediately prior to the commencement of removal proceedings under this Act against the alien, the Secretary of Homeland Security in the exercise of discretion may decide not to apply paragraph (8) and detain the alien without any limitations except those which the Secretary shall adopt by regulation. (14) Judicial review Without regard to the place of confinement, judicial review of any action or decision pursuant to paragraph (6) through (14) shall be available exclusively in habeas corpus proceedings instituted in the United States District Court for the District of Columbia, and only if the alien has exhausted all administrative remedies (statutory and regulatory) available to the alien as of right. . (c) Detention of aliens during removal proceedings (1) In general Section 235 of the Immigration and Nationality Act ( 8 U.S.C. 1225 ) is amended by adding at the end the following: (e) Length of detention (1) In general An alien may be detained under this section while proceedings are pending, without limitation, until the alien is subject to an administratively final order of removal. (2) Effect on detention under section 241 The length of detention under this section shall not affect the validity of any detention under section 241. (f) Judicial review Without regard to the place of confinement, judicial review of any action or decision made pursuant to subsection (e) shall be available exclusively in a habeas corpus proceeding instituted in the United States District Court for the District of Columbia and only if the alien has exhausted all administrative remedies (statutory and nonstatutory) available to the alien as of right. . (2) Conforming amendments Section 236 of the Immigration