Use nodeType instead of a set of bools