Docstrings added.