Explain the ways that the criminal justice system can assist those that are both mentally ill and homeless

Explain the ways that the criminal justice system can assist those that are both mentally ill and homeless. Talk what what does already exist, as well as what should exist.