Added files for the aggregation function