Add environment variable to enable trace flag
Thread type names through