Replaced the logging