Read metadata, get next index, get packet (bug?)