Replacing getInstructions with getNodes