Updated a comment explaining the sum variable.