Renamed function updateMap to setMap, because usually there is a pair of functions getSomething and setSomething