Got new thread pool code better integrated