Adjust codes to support auto creating nods.