Improved flood detection