Add better checking for previous url duplicates