In Alabama, juvenile detention and delinquency services are organized at both the state and local level. In most counties, community supervision, including aftercare, is performed by juvenile probation staff who are employees of the state court system administered by the Alabama Administrative Office of Courts. In the remaining five counties (Jefferson, Madison, Morgan, Montgomery, and Shelby), these functions are performed by juvenile probation staff who are employees of the county executive offices. The Department of Youth Services, a state executive independent juvenile corrections agency, administers commitment to state facilities. Detention is primarily administered by county executive entities, but private contractors also administer detention in some counties.