Refined the Anti-Flood logic.