Adding Bezier smoothing.