Executing the stats aggregation