There’s a great framer for this kind of stuff in leechmere, friend of ours does loads of these types of things and uses them a lot. I’ll dig out the details