Moved interpolate method to library