Minor bug fix. Tested thread pool.