I finally managed to understand the whole function. Very grateful for all your help and contribution. All best.