Thread pool size can be configured through constructor now.