Added support for updating nodes.
Will probably revisit it.