Changing loop to use branch_analyzer.