Add thread pool.