Add a bunch of debugging output.