Use sum instead of reduce-add.