Add thread pool and task queue.