Changed how the map is created.