Since tn is shorthand for thread name, thread_name is probably a better variable name here.