Use command line input parameters instead of hard coded file name