Working for getRecords