I need to calculate how many times a digital tag changes states in a 24 hour timeframe and write the results to an AF attribute. I cant use the PE EventCount method because it doesnt filter out duplicate values (back to back events that contain the same value). I built a custom application using the AF SDK but that seems like overkill for such a simple task.I also considered writing a custom AF data reference, but I would need it to evaluate periodically - approx once an hour (I'm not sure if custom data references are capable of periodic analysis). Does anyone have any recommedations? I'm looking for a simple solution to a simple problem. Thanks!