Docstring and state update