reverseSegments implemented.