Segmentation codes added