Added error handling when no url is given