Added option to use path to input file as argument