Add a bunch of private debugging methods