Making a function of record customer data.