Add a record method that spawns a aggregate calculation before publishing