Change series of additions to call to sum() function in export step.