Improve ends-near.