Added anomaly detection