Generalized the way the interpolation function is accessed