Writing to and appending now functional.

As above.