added an int arg that will limit the number of records indexed