Updated to have an optional per-page parameter.