Implements segmentation option