Implemented findBranch