Add read methods for packets.