Fixing logging in completely