Using outdir instead or outputpath