Add the 'pages' to the returned data structure