Initial work on flooding algm