Add support for interpolations and implement linear interpolation.