Check all branches, removing duplicates