Did the map function.