Implemented mode selection