; (2) by redesignating subsection (o) as subsection (p); and (3) by inserting after subsection (n) the following new subsection (o): (o) Minimum standards for residential mental health or substance-Use services (1) Subject to paragraph (2), in furnishing residential mental health or substance-use services to covered veterans pursuant to subsection (d)(1)(F), the Secretary shall ensure that programs or facilities providing such services under this section meet the following standards: (A) A treatment program or facility must be licensed and accredited by a State for the provision of the services provided. (B) A treatment program must be accredited under either the Joint Commission Behavioral Health Standards or the Behavioral Health Standards manual (residential treatment) of the Commission on Accreditation of Rehabilitation Facilities, or any successor standards or manual. (2) If a program or facility to which a covered veteran is to be referred pursuant to subsection (d)(1)(F) does not meet the standards specified under paragraph (1), the Secretary, acting through the director of the facility of the Department carrying out the referral— (A) shall consider an alternate program or facility