getDocumentSync is not a valid function...