Updated callback for map.