Updated to use schema beta4 & use preferred form of gate, <gateHHrates...> etc.