Include pagination logic.