Added setPage method