Update data structures