Add spline fitting