Minor lines optimization