Some halfway houses are meant solely for reintegration of persons who have been recently released from prison or jail; some are meant for people with chronic mental health disorders; others are for people with substance abuse issues, generally called sober living houses. The state-placement of ex-criminal offenders to a "halfway house" after a prison sentence may either be decided upon as part of the judge's sentence or by a prison official's recommendation. A direct sentence to a halfway house can be decided upon by a judge or prosecutor in lieu of prison time.