Adding in segment.io api