Added new spline method