Compacted code and updated segmentation techniques