Added keepalives to protocol.