Added smoothing.