Sub Segment generation