Added GUI functions