Simpler API for mapreduce style aggregations.