; (II) remain in the prisoner’s residence, except that the prisoner may leave the prisoner’s home in order to, subject to the approval of the Director of the Bureau of Prisons— (aa) perform a job or job-related activities, including an apprenticeship, or participate in job-seeking activities; (bb) participate in recidivism reduction programming or productive activities assigned by the System, or similar activities; (cc) perform community service; (dd) participate in crime victim restoration activities; (ee) receive medical treatment; or (ff) attend religious activities; and (III) comply with such other conditions as the Director determines appropriate. (ii) Alternate means of monitoring If the electronic monitoring of a prisoner described in clause (i)(I) is infeasible for technical or religious reasons, the Director of the Bureau of Prisons may use alternative means of monitoring a prisoner placed in home confinement that the Director determines are as effective or more effective than the electronic monitoring described in clause (i)(I). (iii) Modifications The Director of the Bureau of Prisons may modify the conditions described in clause (i) if the Director determines that a compelling reason exists to do so, and that the prisoner has demonstrated exemplary compliance with such conditions. (iv) Duration Except as provided in paragraph (6), a prisoner who is placed in home confinement shall remain in home confinement until the prisoner has served not less than 85 percent of the prisoner’s imposed term of imprisonment. (B) Community supervision A prisoner placed in prerelease custody pursuant to this subsection who is placed on community supervision— (i) shall be subject to such conditions as the Director of the Bureau of Prisons determines appropriate; (ii) may remain on community supervision until the conclusion of the prisoner’s sentence