Changed the logging