Utiliy function to find branches...