Fixed list of files passed to delete duplicates method, now it actually deletes the duplicates.