Thanks for the feedback!
I just saw your code and I will see how I can implement something similar in C#