Add debug output.

Run this as a test and redirect stderr. Send me the error output.