Goes through all the pages