Changed 'type' for nodes to 'nodetype'