Removed some warnings in SegmentBySegment