Plea bargaining allows an accused person to plead guilty to a lesser charge in exchange for concessions from the prosecution. It was introduced in India through amendments to the Code of Criminal Procedure in 2005 to help reduce pending case backlogs. Plea bargaining is only permitted for offenses with maximum sentences of 7 years imprisonment that do not affect socio-economic conditions or involve crimes against women or children. The process involves negotiations between the prosecution, defense, investigating officer, victim and judge. If an agreement is reached, it is formalized in a court report and the accused is sentenced, often to a lighter punishment.