Added debug message to reattribution
Changed debug level of writing state