Attempted fix to the object logging problem, still not all the way there.