OZP-856 Use max and offset instead of pageSize and page