Added trigger for deleting temporary files