Fixed to use ThreadPool properly.