Successive changes to legislation have seen increases in the prison population.