Refactor for a more practical ThreadPool.