Call modeSelect only when necessary