; (iii) a plan for— (I) measuring progress in achieving the objectives described in clause (i)(I), including a strategy to collect data that can be used to measure that progress; (II) collaborating with the single State agency for the applicant or one or more nonprofit organizations in the community of the applicant to help ensure that— (aa) if participants so desire, participants have continuity of care after release from incarceration with respect to the form of medication-assisted treatment the participants received during incarceration, including— (AA) by working with community service providers to assist eligible participants, before release from incarceration in registering for the Medicaid program under title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq.) or other minimum essential coverage, as defined in section 5000A(f) of the Internal Revenue Code of 1986; and (BB) if a participant cannot afford, or does not qualify for, health insurance that provides coverage with respect to enrollment in a medication-assisted treatment program, and if the participant cannot pay the cost of enrolling in a medication-assisted treatment program, by working with units of local government, nonprofit organizations, opioid use disorder treatment providers, and entities carrying out programs under substance use disorder grants to, before the participant is released from incarceration, identify a resource, other than the applicant or the covered program to be carried out by the applicant, that may be used to pay the cost of enrolling the participant in a medication-assisted treatment program; (bb) medications are securely stored; and (cc) protocols relating to diversion are maintained