Adding additional check for the flood method.