Add custom thread pool.