Add more verbose debugging output.

Should help with Issue 2 - might shed light on what's happening.