Add support for aggregation (only the extended stats aggregation, just for demonstration purpose)