Added Segment.io code