Implement aggregate_rate