Fixed it so that outpath actually works