Edited last part of smoothing section