Almost working gui.