It's just occurred to me that to reduce some of the potential issues with the Badness score, the algorithm could take into account how far apart in time connections are.