Added the logging system