Added Logger for GUI
removed duplication