Add thread limit to constants