Added GetBranches method