Add a way to load documents