Add local binding in log pattern for debugging
Make configurable workers. Fix tests. Refactors.