Interpolation code