Allow numbers of threads to be set via env variables.