Different approach at how to find the id of the document.