Added method to get the max theards