Updated organizeURL Definition to use a dictionary