Added cubic spline curve as an option (default).