Iterate over tree