V3

Not sure if this actually works, but can we verify that the value of `g` is equal to it's parent's priority? I'm thinking something like `newData.val() == newData.parent().getPriority()`. Can you check if that is a valid thing to do? It sounds reasonable...