Removed duplicate vars. Made data-complete code run even if no url.