Flag working