Add ability to set number of threads programmatically.