Added GUI elements and some GUI logic.