Added an aggregator function