Rewrote interpolation as a function