Implemented aggregation and aggregate functions.