Adding better logging for stats_helper.