Add DEVIATION_THRESHOLD config