Moved all logging to the log file instead of being on the console.