Hunting bugs in complexity score, esp. error function