I think `updateCurrentSegment` isn't a good name - `setCurrentSegment` is better.