50 percent of code is working under new conditions. Futher corrections are needed