Fixed to use ThreadPool instead of Executor.