Added 'map' function.