Imprisonment began to replace other forms of criminal punishment in the United States just before the American Revolution, though penal incarceration efforts had been ongoing in England since as early as the 1500s, and prisons in the form of dungeons and various detention facilities had existed as early as the first sovereign states. In colonial times, courts and magistrates would impose punishments including fines, forced labor, public restraint, flogging, maiming, and death, with sheriffs detaining some defendants awaiting trial. The use of confinement as a punishment in itself was originally seen as a more humane alternative to capital and corporal punishment, especially among Quakers in Pennsylvania. Prison building efforts in the United States came in three major waves. The first bega