Moved logger initialization out to beginning of program.