Modified for incorrect thread count.