Initial work on loading documents.