PARTIAL: Better batch-writing behavior.