The smoothing algorithm was re-implemented.