Add in a thread pool class