Add protocol version checking