Added a check for duplicate vids