Hey @SmellyCarpet!
I think this post of mine could be helpful here. Sorry for not being able to prepare something specifically for your case tho, don’t have much free time these days But I believe it already has what you’re looking for! Still feel free to get back to us if you have any trouble implementing it for your use case