Using the aggregation framework