Flood script, upgraded