Allow for specification of input file and directory