Added second smoothing method.