Some smoothing algorithms added.