Added support for worker pool