diff --git a/opigno_learning_path.module b/opigno_learning_path.module
index 0fb2d2b..1f9d2c2 100644
--- a/opigno_learning_path.module
+++ b/opigno_learning_path.module
@@ -3682,6 +3630,8 @@ function opigno_learning_path_get_score($gid, $uid, $current_attempt = FALSE, $l
   if (!empty($mandatory_steps)) {
     $score = round(array_sum(array_map(function ($step) {
       return $step['best score'];
+      // At this point we have a sum of percentages for each step, so get the
+      // mean percentage by dividing the total by the number of steps.
     }, $mandatory_steps)) / count($mandatory_steps));
   }
   else {
