We need a global variable for the flood protection after all. Feel free to improve :)