; and (B) by striking subparagraphs (B) and (C) and inserting the following: (B) Beginning of period The removal period begins on the latest of— (i) the date on which the order of removal becomes administratively final; (ii) if the alien is not in the custody of the Secretary of Homeland Security on the date on which the order of removal becomes administratively final, the date on which the alien is taken into such custody; or (iii) if the alien is detained or confined (except under an immigration process) on the date on which the order of removal becomes administratively final, the date on which the alien is taken into the custody of the Secretary of Homeland Security after the alien is released from such detention or confinement. (C) Extension of period (i) In general The removal period shall be extended beyond a period of 60 days and the Secretary of Homeland Security may, in the Secretary’s sole discretion, keep the alien in detention during such extended period if— (I) the alien fails or refuses to make all reasonable efforts to comply with the removal order, or to fully cooperate with the Secretary’s efforts to establish the alien’s identity and carry out the removal order, including— (aa) making timely application in good faith for travel or other documents necessary for the alien’s departure; or (bb) conspiring or acting to prevent the removal of an alien that is subject to an order of removal; (II) a court, the Board of Immigration Appeals, or an immigration judge orders a stay of removal of an alien who is subject to an administratively final order of removal; (III) the Secretary lawfully transfers custody of the alien to another Federal agency or to a State or local government agency in connection with the official duties of such agency