Adding limit and sort