Added the thread pool, worker and tasks.