Added limit to index query