@J-Camper I added a flag in my template now for undoAllowed and am passing the transaction to the rule sub ByRef so I can end it and set it to nothing before displaying the message boxes.