Added limit and sorting.