Added docstrings.