Some fixes, sums inplemented with Longs