Added workflow detection to scan.