Added processMapReduce() client function