Allow specifying $threads directly when validating