Added Thread local variables