Docstrings for this and the next few functions. Although I understand it's overkill it's good to have consistency right?