Saving input node order as well