Insertion of documents