Update internal structure.