Change to smoothing algorithm