Added ability to save smoothed averages.