Modified the map class.