Fixed logging and attribution bug.