Added in functionality to search through multiple pages