Add thread pool configuration