Added SSE calculation