Page loop completed

Now need to add a merge into the loop