Added ability to get thread pool or set the default one when extending.