Added logging and GuiFactory