More work done on integrating thread pool