Added protocol enum to parser