The US constitution requires a nationwide census every ten years. But by 1880, due to the increase in population and in the census questions, it was taking eight years to process all the data. To fix the problem, electromechanical tabulating machines were invented that could automatically total up data which had been stored on punch cards. Tabulating machines were used in the 1890 census and were able to complete the data analysis in only two years.