Better support of sum, thx mishak87