Less Array::map, more manual loops.
Map is slow. http://jsperf.com/arraymap