Add multithreading to the aggregation process.