Add a function to update nodes in a running simulation.