Fixing Logging