Refactored any_issue_detected out of script, trigger on number_of_issues