Added interpolation function.