Changed vars to allow command line parameters