Hi @FJBorn,
I coded a little procedure using the shelf that should be quite close to what you want to achieve. Maybe it’s a nice starting point to build off of.
All the best!