Fixing logging