The code would be simpler if you made `max_reports` default to `Inf`.  (Also can you please put spaces around `=`)