Adds copious debug output