Changed the orderd of modes.