Added some code to get the dynamic page.