Added handling command line parameters.