SelectedSegment not setting initially.
Refactoring, commenting.