Added constant for thread count