Add new interface for threadpool