Makes thread counts dynamic