Converted from comments to docstrings.