Added the option of using a list of interaction potentials.