; or (iii) delivery of continuous and appropriate mental health services, drug treatment, medical care, job training and placement, educational services, vocational services, and any other service or support needed for reentry; (D) review the process by which the applicant adjudicates violations of parole, probation, or supervision following release from prison, jail, or a juvenile facility, taking into account public safety and the use of graduated, community-based sanctions for minor and technical violations of parole, probation, or supervision (specifically those violations that are not otherwise, and independently, a violation of law); (E) provide for an independent evaluation of reentry programs that include, to the maximum extent possible, random assignment and controlled studies to determine the effectiveness of such programs; (F) target moderate and high-risk offenders for reentry programs through validated assessment tools; or (G) target offenders with histories of homelessness, substance abuse, or mental illness, including a prerelease assessment of the housing status of the offender and behavioral health needs of the offender with clear coordination with mental health, substance abuse, and homelessness services systems to achieve stable and permanent housing outcomes with appropriate support service. (4) Period of grant A grant made under this subsection shall be effective for a 2-year period— (A) beginning on the date on which the planning grant awarded under subsection (e) concludes; or (B) in the case of an implementation grant awarded to an eligible entity that did not receive a planning grant, beginning on the date on which the implementation grant is awarded. ; (4) in subsection (h)— (A) by redesignating paragraphs (2) and (3) as paragraphs (3) and (4), respectively