Optimizing end is allowed.