Currently broken sum implementation