Change writeBulkTo implement