Adding function for getting ama pages.