I don’t know if this fully answers your question, depending on the specifics of what you’re trying to setup, but it may: