Updated to get current page.