Added branch detection in perf branch