Added threading to aggregator.