So here's an updated patch taking Daniel's feedback in account. And respecting the script's coding convention BTW... Same remark as last time: just ignore patches 2 and 3 if you don't think the bring anything. Thanks ! Marc