Updated single page loop