The way I was doing it before it just overwrote what was already there.
Fixing pagination