Added print to .dat function