A short docstring explaining what this function does would be helpful.