Changed the aggregation to use the value