Rename sum to result.