Add limit, offset and totalPh params

See commit comments for use case — there's probably a better way to do this.