Added command line parameter parsing