New smoothing function added, with setting controlled in Set Parameters.

Smoothing applied to the Average only.