Add map reduce