This should be handled inside ReadPacket.