Initial port of bulk write operations from 1.x to 2.x.