Added the possibility to sum over multiple deduction codes