Add input, output path variables
Fix file precedence