Made AddNodeAttributes public instead of protected