Fixed logging again