Rename M parameter to segmentation