Minor optimization.
Update docstrings.