Ok, I'll do it that way. Besides I've just realised that if the client specifies the first item he wants to see (let's say the 15th), and not the items per page, if we try to calculate the page number based on the default value (25), we would return the first page, but the 15th item would be far down the list.