Updated logging to use the log file!