pagesNeeded has an incorrect equation.
Activity