Add reading data from packets (partialy implemented)