Add a simple map function.