Working for the most part - still errors with quadratic interpolation