Implemented first attempt at measure segmentation.