Review Comments. Minor code refactor. Bug fix: correctly handling change in instances for DISTRIBUTED runnables. Added more unit tests.