TRN is now implemented mostly correctly