The only problem with this is that SumProduct is very slow.