Updated logging to file rather than STD out