Create helper function to remove any duplicated media when spawning search times.