A diversion program, also known as a pretrial diversion program or pretrial intervention program, in the criminal justice system is a form of pretrial sentencing that helps remedy the behavior leading to the arrest. Administered by the judicial or law enforcement systems, they often allow the offender to avoid conviction and include a rehabilitation program to prevent future criminal acts. Availability and the operation of such systems differ in different countries.