Modify getStreamsCausingDataLoss method according to new data structure