Implemented mode selection

Spreadsheet has more info