Removed brackets from flag function