Added separate segmentation module, and am trying to refine its output.