Following the temporary loss of power to the biracial coalition of Populists and Republicans in the 1890s, when Democrats regained control of state legislatures (often on campaigns based on white supremacy), they systematically adopted electoral rules in new constitutions or specific laws to disenfranchise black voters by making voter registration and voting more difficult. A number of devices were used, including poll taxes, residency requirements, record-keeping requirements and literacy tests, all administered by white officials. The Democrats sometimes protected illiterate or poor white voters by such devices as grandfather clauses, which provided exemptions to men who had ancestors who have voted or resided in certain areas as of a date that excluded blacks. Application of these measures was done in such a discriminatory way that not even educated, middle-class blacks managed to stay on the voter rolls.