Update data structure.