Added support for non-concurrent writes and automatically determining whether to create or open a file for appending