Some work on threadpool.