VX(Li): The flood algorithm. It need to be improved by implementing an async version.