Actually store the local doc.