Added aggregate functions.