Addition of sequence pattern matching code