in paragraph (3). (E) Redetention The Secretary of Homeland Security, in the exercise of the Secretary's discretion, without any limitations other than those specified in this section, may again detain any alien subject to a final removal order who is released from custody, if removal becomes likely in the reasonably foreseeable future, the alien fails to comply with the conditions of release, or to continue to satisfy the conditions described in subparagraph (A), or if, upon reconsideration, the Secretary, in the Secretary’s sole discretion, determines that the alien can be detained under subparagraph (B). This section shall apply to any alien returned to custody pursuant to this subparagraph, as if the removal period terminated on the day of the redetention. (F) Review of determinations by Secretary A determination by the Secretary under this paragraph shall not be subject to review by any other agency. . (b) Detention of aliens during removal proceedings (1) Clerical amendment (A) Section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 ) is amended by striking Attorney General each place it appears (except in the second place that term appears in section 236(a)) and inserting Secretary of Homeland Security . (B) Section 236(a) of such Act ( 8 U.S.C. 1226(a) ) is amended by inserting the Secretary of Homeland Security or before the Attorney General— . (C) Section 236(e) of such Act ( 8 U.S.C. 1226(e) ) is amended by striking Attorney General’s and inserting Secretary of Homeland Security’s . (2) Length of detention Section 236 of such Act ( 8 U.S.C. 1226 ) is amended by adding at the end the following: (f) Length of detention (1) In general Notwithstanding any other provision of this section, an alien may be detained, and for an alien described in subsection (c) shall be detained, under this section without time limitation, except as provided in subsection (h), during the pendency of removal proceedings. (2) Construction The length of detention under this section shall not affect detention under