- Added some preconditions to the 'invoke' functions to validate the path to the input file.