Added quadratic interpolation