He persuaded parliament to pass the 1823 Gaols Act, which said that prisoners should receive regular visits from prison chaplains, that gaolers should be paid (so they didn’t have to accept bribes), and that female prisoners should have female warders.