Added thread ids in traces