Added ability to resize memory allocation on the fly per-worker.
Added ability to resize memory per-worker on the fly.