Change Write extensions to use the more consistent API