Updates data structure