Fixed error where url was hardcoded, it now takes the url from the command line