Add interface for ThreadPool