Adding Map and Reduce methods for TrevorTasks