Modified for number of record