Make get_relevant_pages fit contract