Use bulk_set_node to improve efficiency