Added the possibility of set output.dat filepath