Adding flexible mismatches