Add add_page_to_index and look_up function