Added some debugging methods