Same comment wrt. `previousSegment` versus `getPreviousSegment` as `nextSegment` versus `getNextSegment` above.