added parameter passing from command line.