Second half of Debug GUI and start of functionality