Added protocol to the pattern checker.