Added sum of squares