Changed from set to list for the nodes list