Update flags to select the correct protocol