patternscan debug: Allow showing progress during scanning