@Jon Dingman You are a genius!
I am infinitely grateful to you! Your solution saved me hours of work. I searched for a solution myself for a long time, but your contribution was exactly what I needed.