Added logging for # valid ids.