This could do with a docstring.