Added flood protection