Added support for protocol version 3