Added the ability to page results and sort by fields