This function should have a docstring.