Added fine control over OpenMP threads.