Changes slightly worker, refactors publishing, adds more configuration options.