In 1870, more than 22,000 mills served the total population of about 30 million people. Most of the small grist mills were driven by waterpower. The invention of the steam engine by James Watt in 1769, the introduction of the more efficient roller mill system, and the application of the middlings purifier, combined to make possible model milling.