Smooth the statistics.

Since the stats generated may contain some noise, they are smoothed by
taking the average of a number of passes (currently set to 3).