Update to interpolation function