Programs within the court system or which operate in cooperation with the courts that carry out the administrative functions required for handling the disposition of people who have been accused of a crime prior to trial; and the indictment, arraignment, trial and sentencing of people who have been arrested and charged with a crime.