Added Logging to log messages