Must set flags before signing validation.