Delinquency services in Massachusetts are organized at the both the state and local level. Secure detention and state commitments are both administered by the Department of Youth Services (DYS) within the Massachusetts Department of Health and Human Services, a state-level executive agency. Community supervision is administered by the Office of Commissioner of Probation a state judicial agency, across 11 local divisions. Aftercare services for youth leaving state facilities are administered at both the state and local level by either DYS or local juvenile courts.