Adds support for threadpool settings.
Merge commit.