This docstring doesn't quite match the implementation: in the code it's "flag" and "not flag", no "the"