Optimize end-of-this.