Adding some docstrings.