Getting around the pre-aggregation restriction on averaging