Use offset and limit from query params if present.