Closer, still repeating the page number. Probably a problem with the main control logic in getValue in main.