Begin modify the logic for MapReduce operation