Add func to print output with get_depth