Fixed forwards pagination, drying code to build backwords p.