Updating and adding a smoothing algorithm