Moved sum to utils.go