Added printBranch from @petersohn