Removed next_tid. Thread ids are now their table index.