Function to add records added.