Finished the segmentation step