Fix for udoo
Optimizing the summation algorithm