In the second half of the 18th century, the technology of cotton-spinning machinery improved, and the need for larger buildings to house bigger, better and more efficient equipment became apparent. The profitability of cotton spinning meant that open land that had been used for farming since antiquity, was utilised for purpose-built weavers' cottages. Larger buildings were still desired, and construction of two water powered cotton factories (two or three times the size of a cottage) can be traced to 1782. The construction of more mills followed—ten by 1789—facilitating a process of urbanisation and socioeconomic transformation in the region; the population moved away from farming, adopting employment in the factory system. The introduction of the factory system led to an increase of the township's population; from 872 in 1714 to 3,500 in 1801, mostly as a result of an influx of people from Yorkshire and Lancashire looking for employment in the cotton mills.