Prison overcrowding is a widespread problem in Latin America, primarily because of harsh drug-sentencing laws and inadequate budgets, but Costa Rica may be setting a useful example for dealing with it. In most countries, guards control the perimeter, but groups of prisoners or criminal gangs organize and control life inside the prison compound. Rehabilitation and re-integration programs are limited.