Simplified trans history by replacing priority queues with linked lists which also fixes ordering issues