Fixed error of numRecordsToShow not being defined. CR Val Adams.