Almost done with the log query protocol.