Added primitive map generation.