New script: inserting TM ids