Add a bunch of debugging.