Finally i finished rewriting AutoPurge

Now i need to test it