Added protocol arg to Connect method