Adds write to file option