Add possibility to turn off file appending