Improves codes to prevent repeat alerts / route changes