What allowed for factories to be built anywhere?