Fixes issues with possible duplicate downloads.