Add dot_interpolate function