Alex spline code.