Quality control detection