Added serializing stuff to Node.