Added clause to calculate list permutations.