Added a parameter to retrieve_data method to include number of pages deep to retrieve.