Improved handling of large lists. Better logging.