Building aggregation functionality.