Further work on protocol, beginning implementing packets.