Ownership switch needed in both __call__ and runAgent.
Merged.