Added trivial average aggregation function