Added algorithm to track collective hitting.