Adding smoothing support.