This `end_edit` should be outside of the `for` loop.