Send filepath as a second parameter to the map function