@jim-p , @Deva_Rishi - just wanted to thank you for all your advice on this.
I got everything to work using the diagram you suggested, and learnt a lot on the way. The whole thing worked as we wanted, and has been absolutely reliable throughout it's run.