Edited smoothing section.