Added support for sum or multiply with list.