Support for custom aggregations