Added option to append data from another file