Set flags in knockout