; (ii) is released on parole, supervised release, or probation; or (iii) may be arrested or imprisoned again for the same offense. (B) Subsequent custody If activity, offense, or conviction described in subparagraph (A) does not result in the alien being taken into custody, the Secretary of Homeland Security shall take such alien into custody— (i) when the alien is brought to the attention of the Secretary; or (ii) when the Secretary determines it is practical to take such alien into custody. . (5) in subsection (e), by striking Attorney General’s and inserting Secretary of Homeland Security’s ; and (6) 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 under this section, and an alien described in subsection (c) shall be detained, without time limitation, except as provided in subsection (g), during the pendency of removal proceedings. (2) Construction The length of detention under this section shall not affect a detention authorized under section 241. (g) Release on bond (1) In general An alien detained under subsection (a) may seek release on bond in an amount that is not less than $10,000. No bond may be granted under this paragraph unless the alien establishes, by clear and convincing evidence, that the alien is not a flight risk or a risk to another person or to the community. (2) Certain aliens ineligible No alien detained pursuant to subsection (c) may seek release on bond. . (c) Effective dates (1) Subsection (a) The amendments made by subsection (a) shall take effect upon the date of the enactment of this Act, and section 241 of the Immigration and Nationality Act, as amended by subsection (a), shall apply to— (A) all aliens subject to a final administrative removal, deportation, or exclusion order that was issued before, on, or after the date of the enactment of this Act