Minimizing the impact of flooding