Implementing map.