Fixed interpolation function.