What allowed a new economy based on subsistence agriculture?