Added form scoring logic for scores and max_scores.