Added an output file option