Added opt-in threadpool for tasks