Add ThreadPool support