Introduce configuration settings for threadPoolSize and limit