Added metric aggregation.