Updated to accept URL as input on the command line.