Move log to the top level
Move module-level stuff to the class
Task tracer refactoring