Gui version
Removed some debug stuff