writeKV() implemented.