Added code to parse arguments and call web server