Adding append and file read/write support