Store stats when finishing task.
Pre-create pseudo-random name, make sure there is one.
Add documentation to stats methods.