Changed debug info code to use convenience method.