; and (B) for a prisoner classified as moderate risk, the prisoner’s most recent risk and needs assessment reflects that the prisoner’s risk of recidivism has declined during the period of the prisoner’s incarceration. (3) Types of prerelease custody A prisoner eligible to serve a portion of the prisoner’s sentence in prerelease custody pursuant to paragraph (2) may serve such portion in a residential reentry center, on home confinement, or, subject to paragraph (5), on community supervision. ; (3) by redesignating paragraphs (4) through (6) as paragraphs (9) through (11), respectively; (4) by inserting the following after paragraph (3): (4) Home confinement (A) In general Upon placement in home confinement pursuant to paragraph (2), a prisoner shall— (i) be subject to 24-hour electronic monitoring that enables the prompt identification of any violation of clause (ii); (ii) remain in the prisoner’s residence, with the exception of the following activities, subject to approval by the Director of the Bureau of Prisons— (I) participation in a job, job-seeking activities, or job-related activities, including an apprenticeship; (II) participation in recidivism reduction programming or productive activities assigned by the Post-Sentencing Risk and Needs Assessment System, or similar activities approved in advance by the Director of the Bureau of Prisons; (III) participation in community service; (IV) crime victim restoration activities; (V) medical treatment; or (VI) religious activities