Changed the append function to accept a string rather than a filename.