Factory discipline could be better enforced if workers were under constant surveillance inside a building instead of letting them work at home. Yet without lighting one could work only during the day. Lighting enabled an increase in the length of the working day and soon factories, unlike churches, were operating day and night.