Logical code optimization.