Added convenience methods for debugging.