Can you give a brief docstring for this function.