Create separate function for parametric interpolation.