Added support for aggregation of tasks