; (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; and (B) by striking paragraph (1) and inserting the following: (1) In general As a condition of receiving financial assistance under subsection (f), each application shall develop a comprehensive reentry strategic plan that— (A) contains a plan to assess inmate reentry needs and measurable annual and 3-year performance outcomes; (B) uses, to the maximum extent possible, randomly assigned and controlled studies, or rigorous quasi-experimental studies with matched comparison groups, to determine the effectiveness of the program funded with a grant under subsection (f)