Detecting presence of flaws or irregularities