The mentally ill are being increasingly processed through the criminal justice system.