Besides serving as an alternative to civil or criminal trial, restorative justice is also thought to be applicable to offenders who are currently incarcerated. The purpose of restorative justice in prisons is to assist with the prisoner's rehabilitation, and eventual reintegration into society. By repairing the harm to the relationships between offenders and victims, and offenders and the community that resulted from the crime, restorative justice seeks to understand and address the circumstances which contributed to the crime. This is thought to prevent recidivism (that is, that the offender repeats the undesirable behavior) once the offender is released.