Adds better verification of provided thread count