Various debugging stuff.