DETECTION PHASE AND QUALITY CONTROL