More mapgen work. Factories.