Implemented stage selection with gui.