Added print to file option