Removed insert inside of loop, and also added functionality to purge list before inserting, in order to pick up picklist value deletions.