Tries moving generate_unique_url to the helper method