Three command line parameters are now accepted and tested for validity.