Adds some more debug code.