Included logigng for format_scores