Fixed issue where redundant records were being added