Added debugging methods.