Fix erroneous type.
Change variable name.
Update docstring.
Clean up parameters (and context object), remove obsolete comment.
Add docstrings, clean up arguments.