I asked a question in the main forum, and I for clarity purposes I provided a simplification of my code.
There was an answer that solved it and worked fine for me, but in the comments I provided more details about my code. With this new information there was another answer that was a better fit for my problem, but did not address the original question since this was asked based on a simplification of my code.
I think both answers might be useful for people with the same issue I had, but they address two different problems. I feel that if I accept the new answer which worked better for me it will not match the original question and it might be confusing for people reading the post in the future. It is also true that I ended using that solution. What is the best way to proceed?