Beginning of Segment.io library