Added instantiate-node function.