The functions to work with maps.