Modification of the Pages app. Was not working properly before.