Add to-map function.