Added clause to evaluate the length of a list.