ANOMALY SCAN ROUTINE