Added output file choosing