The onStat function logs "complete" when publishing the "complete" event.