Updated document index method