@gimick I think an issue is here.  this should loop through devices that have never been seen before.  If that device sent no models, this code should be run.  But otherwise, this line should not be run--otherwise counters would get reset to zero,

So, I think removing this line should work fine.  Probably checking that it's not None is best.

Ben