Added cursor position option for paginating