Added support for where conditionality to reflect the number of pages and allowed query string variables to pass from one page to the next