Misc debugging stuff.