Added GUI to main.