Actual page lookup needs to be in loop

Need more sleep apparently.