Added printout of list size for debugging.