Adding initial cut run length smoothing code. Needs refinement, but works well.