Added a configurable timeout to the worker pool call.