Modified to retrieve 50 documents