Change implementation logic of map.