Added ascending IDs, so that nodes can be referred to