Added graphical inteface. Not working right now.