Added aggregation step