Internal optimization.