Adding mapreduce