Added getPageByName method.