Added interpolate function