Update for latest agents.

Also fix identify match counting to use longs (it was overflowing
integer range when calculating percentages).