Agent uses thread pool more efficiently; no longer has #length methof.