Add docstring.
Cleanup log paths.