Well this later on should be before line 21 where the vars are passed to the function.

Probably they should point to some argv[] members if paths are given in the command line