Updated client for new protocol.