Logging now working