Thank you very much! That helped me a lot. I’m keeping the functions a bit simpler now to try to understand the basis. to do this, I’ve adapted some new code. I will mark this topic as solved and open my new question ( since it is new code) in a new topic.
Thank you very much!