In addition to performing law enforcement and corrections roles, the department performs the functions of the coroner's office and marshal's office. In its coroner function, the department is responsible for recovering deceased persons within the county and conducting autopsies. When California reorganized its judicial system in the early 21st century and eliminated state marshal's offices, the department assumed responsibility for state courts within the county, providing court security and service of warrants and court processes. The department also provides services such as air support, special weapons teams for high-risk critical incidents, forensics services and crime laboratories, homicide investigations, and academy training to smaller law enforcement agencies within the county and in surrounding counties.