Added working segmentation