Added output file option