Adds the branch detection mechanism to the output for diagnostics