Changed from write to append.