Wow thank you for your explanations, I will try to emplement what you’ve said, that seems much more optimised.
As for the problem I had, adding a delay worked ! Thank you ! You saved me some badly optimised coding ^^