Accepts command line parameters