Changed debugging output and modified comment to be more explanatory.