Add options to set run directory and filetype