Hi Tony, maybe you can find some ideas for it in this thread:
I think you can adapt the logic behind it…