Adds support for writing blobs.
More consistent variable naming throughout.