Got pagination to work