Maybe your script could sort based on score.