Commiting before making changes specific to this aggregate. This code
can be used as template for other aggregate functions.