Added debug output to buggy section