Updating file stucture