Adds a self-check routine to COM file to check for tampering.