Added skeleton for set flags method