Changed inject for sum