Updated the logging