Replaced linear interpolation with smooth Bezier based