Add construct method with thread pool size