Flood Detection algorithm added.