Clean up a bunch of debug stuff.