Added the number of pages to be iterated to find topics