Add logging, working through protocol.