Added flags parameter to sub-parcel write methods