It doesn't look like `last_occurrence` is used in this method?