Aggregation support sketch, with clj code