Trap is formed as a combination of Tri and TriStop now
Initial values are copied to tmp. tmp file is replaced each time