What does this function do? I can't tell from its name (and it has no docstring).