@nixCraft Of course the real question is:Did the code make any sense the next day ?Spoiler: no. I have a php script which has been running for years, it does the job. I have thought several times about re-writing it, but if it ain't broken...