New MapReduce utility functions