Reintegration

Commits from integration branch without agent/worker communication refactoring and tests
Don't you still need this flag?