Added flood detection