The functions of the Department of Corrective Services include managing adult and juvenile offenders in custody and in the community in accordance with court orders, community standards and crime prevention, and also mediating to assist victims of crime.