Upgraded code to the latest version of the Logger class.