Add aggregating functions.