Adding support for a max_per_page parameter.