What does this function do? The documentation below does not describe the function