Add logging separate methods to update_stats.