Updated client to use packet structure.