Add support for thread pool configuration