Hi,
it seems it's just a little copy/paste problem.
I do the modifications, just compare with your original file to see the differences and specially if you have modify it.
In this example it remove the delete all the time... You'll have to add code to check date and time but you already have it.
Dominique