allow_sub -> substitution, seq1 -> sequence1, seq2 -> sequence2