Added more robust re-attempt mechanism to page queries on failure.