Wrote own map function that works left to right.