Updating flags example